﻿using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging;
using SHKF.B2C.MeiTuanShanGou.Model.Dto;
using SHKF.B2C.MeiTuanShanGou.Model.Dto.OrderRefundDetail;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace SHKF.B2C.MeiTuanShanGou.Service.Controllers
{
    [Route("[controller]")]
    [ApiController]
    public class EcommerceController : Base2Controller
    {
        public EcommerceController( 
           IServiceProvider serviceProvider,
           ILogger<NonProductController> logger) : base(serviceProvider, logger)
        {
           
        }

        [HttpGet("order/getOrderRefundDetail")]
        public async Task<OrderRefundDetailDto> OrderRefundDetail(long wm_order_id_view, int refund_type)
        {
            OrderRefundDetailDto dto = new OrderRefundDetailDto();
 
            await base.GetMtsgToken(13587900);

            dto = await this.httpClientMeiTuanShanGou.GetOrderRefundDetail(wm_order_id_view, refund_type);

            return dto;
        }
    }
}
